﻿<Window x:Class="Tanmia.Windows.DiscriminatedItemScenario.EasyAdd"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" Loaded="Window_Loaded" Closing="Window_Closing"
        Title="الإضافة السريع للقطع المميزة" FlowDirection="RightToLeft" MinHeight="350" MinWidth="370" Height="400" Width="570">
    <Grid Margin="8,16,8,16">
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="auto" />
            <ColumnDefinition Width="*" />
        </Grid.ColumnDefinitions>
        <Grid.RowDefinitions>
            <RowDefinition Height="auto" />
            <RowDefinition Height="6" />
            <RowDefinition Height="auto" />
            <RowDefinition Height="6" />
            <RowDefinition Height="auto" />
            <RowDefinition Height="6" />
            <RowDefinition Height="auto" />
            <RowDefinition Height="6" />
            <RowDefinition Height="auto" />
            <RowDefinition Height="6" />
            <RowDefinition Height="auto" />
            <RowDefinition Height="*" />
            <RowDefinition Height="auto" />
            <RowDefinition Height="6" />
            <RowDefinition Height="auto" />
            <RowDefinition Height="6" />
            <RowDefinition Height="auto" />
        </Grid.RowDefinitions>
        
        <Label Content="القطعة: " Grid.Row="0"/>
        <TextBlock Name="txtItem" Grid.Column="1" Grid.Row="0" Margin="4,2,8,1" Text="زد لف" TextAlignment="Center"/>

        <Label Content="اللون: " Grid.Row="2"/>
        <TextBlock Name="txtColor" Grid.Column="1" Grid.Row="2" Margin="4,2,8,1" Text="بني" TextAlignment="Center"/>

        <Label Content="المصنع: " Grid.Row="4"/>
        <TextBlock Name="txtManufacturer" Grid.Column="1" Grid.Row="4" Margin="4,2,8,1" Text="مسالكو" TextAlignment="Center"/>

        <Label Content="وحدة القياس الإفتراضية: " Grid.Row="6"/>
        <ComboBox Name="cmbUnit" Grid.Column="1" Grid.Row="6" Margin="4,2,8,1" Text="سنتي متر" HorizontalContentAlignment="Center"/>

        <Label Content="سعر التكلفة: " Grid.Row="8"/>
        <TextBox Name="txtCost" Grid.Column="1" Grid.Row="8" Margin="4,2,8,1"/>

        <Label Content="سعر المبيع: " Grid.Row="10"/>
        <TextBox Name="txtPrice" Grid.Column="1" Grid.Row="10" Margin="4,2,8,1"/>

        <Label Content="اضغط على زر Enter للحفظ." Grid.Row="12" Grid.Column="1" Foreground="#FF898989" />
        <Label Content="اضغط على زر Esc للتجاهل." Grid.Row="14" Grid.Column="1" Foreground="#FF898989" />

        <Button Name="btnIgnore" Click="btnIgnore_Click" IsCancel="True" Content="تجاهل" Height="23" Grid.Column="1" Margin="0,6,8,1" Grid.Row="16" HorizontalAlignment="Right" Width="100" />
        <Button Name="btnSave" Click="btnSave_Click" IsDefault="True" Content="حفظ" Height="23" Grid.Column="1" Margin="0,6,118,1" Grid.Row="16" HorizontalAlignment="Right" Width="100" />
    </Grid>
</Window>
